﻿@{
    Layout = "_LayoutAdmin";
}

@model Moonglade.Web.Models.CategoryEditViewModel

<h3>
    Delete Category
</h3>
<hr />

<div class="alert alert-warning">Are you sure you want to delete this category?</div>

<table class="table table-bordered">
    <tr>
        <td class="table-item-w30">
            <strong>@Html.DisplayNameFor(model => model.DisplayName)</strong>
        </td>
        <td>
            @Html.DisplayFor(model => model.DisplayName)
        </td>
    </tr>
    <tr>
        <td class="table-item-w30">
            <strong>@Html.DisplayNameFor(model => model.Name)</strong>
        </td>
        <td>
            @Html.DisplayFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <td class="table-item-w30">
            <strong>@Html.DisplayNameFor(model => model.Note)</strong>
        </td>
        <td>
            @Html.DisplayFor(model => model.Note)
        </td>
    </tr>
</table>

<form asp-action="Delete">
    <input type="hidden" asp-for="Id" />

    <div class="form-actions no-color">
        <input type="submit" value="Delete" class="btn btn-danger" />
        <a asp-action="Manage" class="btn btn-secondary">Cancel</a>
    </div>
</form>